package com.g4.shoppingback.service;

import com.g4.shoppingback.common.PageVo;
import com.g4.shoppingback.common.Result;
import com.g4.shoppingback.pojo.DdOrderInfo;

public interface DdOrderInfoService {

    /**
     * 根据分页信息或订单名查询订单
     * @param pageVo 封装了页数和关键字
     * @return 返回分页信息
     */
    Result selectOrderByPage(PageVo pageVo);

    /**
     * 根据id修改发货状态
     * @param ddOrderInfo 订单id和状态
     * @return 影响行数
     */
    int updateDelivery(DdOrderInfo ddOrderInfo);

    /**
     * 根据id修改地址
     * @param ddOrderInfo 订单id和地址id
     * @return 影响行数
     */
    int updateAddressId(DdOrderInfo ddOrderInfo);
}
